use sea_orm::Database;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let _ = dotenv::dotenv().ok();
    let database_url = std::env::var("DATABASE_URL").unwrap();
    let db = Database::connect(&database_url).await;

    match db {
        Ok(_) => {
            println!("succ")
        }
        Err(err) => {
            eprintln!("{:?}", err)
        }
    }

    Ok(())
}
